import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
  state: {
    phone:null,
    phoneDialog: false,
    registerDialog: false,
    addPhoneDialog: false,
    setPersonalDialog: false,
    addGroupDialog: false,
    appInstallDialog: false,
    orderDialog: false,
    changeRemarkDialog:false
  },
  getters: {

  },
  mutations: {
    //用于控制dialog显示/隐藏
    setDialogStatus(state, data) {
      state[data.dialog] = data.isBoolean;
    },
    //云手机数据
    setPhone(state, data){
      state.phone = data.phone;
    }
  },
  actions: {

  }
});
